<?php include("../Service/WebClass/report/EngineQueryClass.php");
$Entity = new Entity;
$Entity->MyTask();
?>	
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<title>AD LISTING</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script language="JavaScript" src="../js/common.js" type="text/javascript"></script>
<script language="JavaScript" src="../js/Calendar4.js" type="text/javascript"></script>
<script>
function do_search()
{
	document.getElementById("mainform").submit();	
}
</script>

</head>
<body bgcolor="#F4FFE4">
<?php include("../head.php") ?> 
  
<table width="100%" border="0" cellspacing="0" cellpadding="0">

 <tr>
    <td width="165" valign="top" bgcolor="#5C743D"><?php include("../menu.php");?></td>
    <td width="813" colspan="2" align="center" valign="top">
    <form name="mainform" id="mainform" method="post">
<?php
echo "<input type=hidden name=act id=act value=submit>"
?>    	
<table width="100%" border="0" cellpadding="4" cellspacing="0" class="tbl where">
	<tr>
		<td>
        <input type="text" name="from_date" id="cal_input_from" value="<?php echo $Entity->fromDate;?>" class="txBox" style="width: 70px;">
<a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fPopCalendar(getObjById('cal_input_from'));return false;" HIDEFOCUS>
<img name="popcal2" align="top" src="../images/cal.gif" border="0" alt="calendar" onclick="MyCalendar.SetDate(this,document.getElementById('cal_input_from'))"></a>
-
<input type="text" name="to_date" id="cal_input_to" value="<?php echo $Entity->toDate;?>" class="txBox" style="width: 70px;">
<a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fPopCalendar(getObjById('cal_input_to'));return false;" HIDEFOCUS>
<img name="popcal2" align="top" src="../images/cal.gif" border="0" alt="calendar" onclick="MyCalendar.SetDate(this,document.getElementById('cal_input_to'))"></a>
&nbsp;&nbsp;
<?php echo "<input type=hidden name=isMediaSelectClick id=isMediaSelectClick value=0>"?>			
媒体<select name="search_media_select" id="search_media_select" onchange="javascript:document.getElementById('isMediaSelectClick').value=1;do_search();" class="txBox">
			<?php echo $Entity->mediaList;?>
			  </select>
 				<script>
				document.getElementById("search_media_select").value = <?php echo $Entity->media; ?>;
				</script>		
キャンペーン<select name="search_campaign_select" id="search_campaign_select" onchange="javascript:document.getElementById('act').value = 'getGroup';do_search();" class="txBox">
			<?php echo $Entity->campList;?>
			  </select>
 				<script>
				document.getElementById("search_campaign_select").value = <?php echo $Entity->camp; ?>;
				</script>
&nbsp;&nbsp;			
広告グループ<select name="search_banner_select" id="search_banner_select" onchange="javascript:document.getElementById('act').value = 'getKeyWord';do_search();"class="txBox">
			<?php echo $Entity->groupList;?>
			  </select>
 				<script>
				document.getElementById("search_banner_select").value = <?php echo $Entity->group; ?>;
				</script>

&nbsp;&nbsp;			
キーワード<select name="search_keyword_select" id="search_keyword_select" onchange="javascript:do_search();" class="txBox">
			<?php echo $Entity->keywordList;?>
			  </select>
               				<script>
				document.getElementById("search_keyword_select").value = <?php echo $Entity->keyword; ?>;
				</script>
     </td>
	</tr>
	<tr>
		<td><?php if($Entity->objectType==1) echo "検索エンジン"; else echo "クエリワード";?>
		  <input type="text" name="search_text" size="35" maxlength="100" value="<?php echo $Entity->searchName; ?>" class="txBox">
		  &nbsp;&nbsp;			<input type="submit" class="btn search" value="">		</td>
	</tr>
</table><img src="view/images/spacer.gif" width="1" height="5" border="0">


<table width="100%" border="0" cellpadding="2" cellspacing="0">
	<tr>

		<td align="left">
			<img src="../images/ico_summary.gif" border="0">
			ビュー
			&nbsp;&nbsp;
			
						※データのない検索エンジンは表示されません			</td>
		<td align="right">

			<input type="button" class="btn refresh" onclick="document.location.reload();"></td>
	</tr>
</table>
<?php echo $Entity->htmlTable;?>

</form>
			<!-- end of main area -->

    </td>

  </tr>
 </table>
<div id="footer" align="center"  style="background:#99CC66">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td  bgcolor="#5C743D">
    	<img src="../images/mm_spacer.gif" alt="" width="1" height="2" border="0" />
    </td>
  </tr>

  <tr>
    <td bgcolor="#99CC66" background="../images/mm_dashed_line.gif"><img src="../images/mm_dashed_line.gif" alt="line decor" width="4" height="3" border="0" /></td>
  </tr>
   <tr>
  <td align="center">
    <span style="color:#993300">Copyright(c) ADListing,Inc. All Right Reserved.    </span></td>
    </tr>
        <tr>
    <td colspan="7" bgcolor="#99CC66" background="../images/mm_dashed_line.gif"><img src="../images/mm_dashed_line.gif" alt="line decor" width="4" height="3" border="0" /></td>
  </tr>
</table>
  </div>

</body>
</html>
